home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Night Owl 6
/
Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso
/
007a
/
wordhunt.zip
/
INSTALL.BAT
< prev
next >
Wrap
DOS Batch File
|
1991-11-12
|
3KB
|
83 lines
echo off
cls
if %1a == a: goto WHATDRIVE
if %1b == b: goto WHATDRIVE
if %1 == c: goto START
if %1 == C: goto START
if %1 == d: goto START
if %1 == D: goto START
if %1 == e: goto START
if %1 == E: goto START
if %1 == f: goto START
if %1 == F: goto START
goto NOTDRIVE
:START
echo * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
echo * *
echo * Word Hunt Hard Disk Installation *
echo * *
echo * This will create a directory called %1\WORDH on your hard disk, *
echo * and will install Word Hunt and it's files in that directory. *
echo * *
echo * If you don't want Word Hunt installed at this time, press Ctrl + C. *
echo * *
echo * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
echo
pause
cls
echo Making directory %1\WORDH . . .
if exist %1\WORDH\*.* goto EXISTS
md %1\WORDH
:CHECK
if exist WH.EXE goto CONTINUE
echo
echo Place the disk containing Word Hunt and it's files in active drive.
echo
pause
goto CHECK
:CONTINUE
echo
echo Copying Word Hunt and its files . . .
copy GO.BAT %1\WORDH
copy INSTALL.BAT %1\WORDH
copy WH.EXE %1\WORDH
copy WH.DOC %1\WORDH
copy DIRECTRI.TXT %1\WORDH
copy *.WHL %1\WORDH
if not exist %1\WORDH\WH.EXE goto INSTALLERROR
if not exist %1\WORDH\DIRECTRI.TXT goto INSTALLERROR
if not exist %1\WORDH\INSTALL.BAT goto INSTALLERROR
cd %1\WORDH
echo
echo Word Hunt is installed on your hard disk. To run it, type WH.
%1
echo
goto DONE
:WHATDRIVE
cls
echo Installation Error: To install Word Hunt on your hard disk, you
echo must include the drive as part of the install command. For example,
echo to install Word Hunt on drive C, type INSTALL C: and press Enter.
goto ERRORQUIT
:NOTDRIVE
cls
echo Installation Error: The hard drive letter can be a letter from C to F,
echo For example, INSTALL C: will install Word Hunt on drive C. You must
echo include a colon after the drive letter.
goto ERRORQUIT
:INSTALLERROR
cls
echo Installation Error: Do you have enough space on your hard disk?
echo Did you give the proper hard drive letter?
goto ERRORQUIT
:EXISTS
cls
echo Installation Error: WORDH Directory already exists on this drive.
echo Delete this directory and all files in it, then try installing again.
goto ERRORQUIT
:ERRORQUIT
echo
echo Word Hunt was not installed correctly.
echo
:DONE